package com.airtight.objects;

import com.airtight.programs.TextureShaderProgram;

import static android.opengl.Matrix.orthoM;


public class ClickableObject extends Object{

    private final float[] objectMatrix = new float[16];


    public ClickableObject(float x, float y, float width, float height) {
        super(x, y, width, height);
        orthoM(objectMatrix, 0, -1f, 1f, -1, 1, -1, 1f);
    }

    public void drawObject(TextureShaderProgram textureProgram, int plate) {
        textureProgram.setTexture(objectMatrix, plate);
        bindData(textureProgram);
        draw();
    }
}
